<div class='pay_item_form'>
  <div class='form'>
    <%  remote_form_for @designer_work_item,
          :update => "stage_#{@stage.id}_type_#{@type.id}_desgner_#{@designer.id}_work_items",
          :url => designer_work_item_url(@designer_work_item),
          :method => :put,
          :loading => short_loader("stage_#{@stage.id}_type_#{@type.id}_desgner_#{@designer.id}_work_items",:height => 555,:width => 479),
          :html => {
            :id => "edit_stage_#{@stage.id}_type_#{@type.id}_designer_work_item_form"
          } do |f| %>
      <dl>
        <dt>工作项：</dt>
        <dd class='lone'>
          <%= f.select :work_item_id,WorkItem.find_all_by_stage_id_and_work_item_type_id(@stage.id,@type.id).collect {|p| [ p.name, p.id ] } %>
        </dd>
      </dl>
      <dl>
        <dt>计费面积：</dt>
        <dd><%= f.text_field :billing_area, :size => 60 %></dd>
      </dl>
      <dl>
        <dt>工作量：</dt>
        <dd><%= f.text_field :work_load, :size => 60 %></dd>
      </dl>
      <dl>
        <dt>发放比例：</dt>
        <dd><%= f.text_field :provided_percent, :size => 60 %></dd>
      </dl>
      <dl>
        <dt>指导比例：</dt>
        <dd><%= f.text_field :guided_percent, :size => 60 %></dd>
      </dl>
      <dl>
        <dt>类型系数：</dt>
        <dd><%= f.text_field :type_num, :size => 60 %></dd>
      </dl>
      <dl>
        <dt>难度系数：</dt>
        <dd><%= f.text_field :difficulty_num, :size => 60 %></dd>
      </dl>
      <dl>
        <dt>修改系数：</dt>
        <dd><%= f.text_field :motify_num, :size => 60 %></dd>
      </dl>
      <dl>
        <dt class='l'>备注：</dt>
        <dd>
          <%= f.text_area :remark %>
        </dd>
      </dl>
    <% end %>
  </div>
  <div class='buttons'>
    <%= link_to_function '保存',
          "$('edit_stage_#{@stage.id}_type_#{@type.id}_designer_work_item_form').onsubmit()",
          :class => 'save button'
      %>
    <%= link_to_remote '返回',
          :update => "stage_#{@stage.id}_type_#{@type.id}_desgner_#{@designer.id}_work_items",
          :url => designer_work_items_url(
            :stage_id => @stage.id,
            :work_item_type_id => @type.id,
            :designer_id => @designer.id
          ),
          :method => :get,
          :html => {
            :class => 'go_back button'
          }
      %>
  </div>
</div>